package com.zhanghuang.template;

import com.zhanghuang.format.FormatProcessor;

public class HelloFormatTemplate {
    private FormatProcessor formatProcessor;

    public HelloFormatTemplate(FormatProcessor formatProcessor) {
        this.formatProcessor = formatProcessor;
    }

    public <T> String  doFormat(T obj){
        return  formatProcessor.format(obj);
    }
}
